package org.hs.phd.odi.bgsub.features;

import java.util.List;

import org.hs.phd.odi.bgsub.vob.VisualObject;

import com.googlecode.javacv.cpp.opencv_core.IplImage;

public class ShapeOverlappingFeatureDetector implements FeatureDetector{
	

	public ShapeOverlappingFeatureDetector(){
	}

	@Override
	public void detectAndSetFeatures(IplImage iplImage, List<VisualObject> objects) {
		
		for(VisualObject obj: objects){
			obj.setFeatures( new ShapeFeature(obj.getPolygon()) );
		}
		
	}

	@Override
	public FeatureMatcher getFeatureMatcher() {
		return new ShapeOverlappingFeatureMatcher();
	}

}
